//
// Copyright (C) 2020 IOTech Ltd
//
// SPDX-License-Identifier: Apache-2.0

package redis

import (
	"github.com/edgexfoundry/edgex-go/internal/pkg/infrastructure/redis"
	"strings"
)

// CreateKey creates Redis key by connecting the target key with DBKeySeparator
func CreateKey(targets ...string) string {
	return strings.Join(targets, redis.DBKeySeparator)
}
